<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="MI/js/jquery-1.11.1.js"></script>
	</head>
	<body>
		<h1>prop()和removeProp()函数使用</h1>
		<input type="checkbox" id="myCheckBox" checked  />
		     <button id="getProBtn">获取属性</button>
		   <button id="setProBtn">设置属性</button>    
		  <button id="removeProBtn" >移出属性</button>
		  <div id="output">  </div>
		  <script>
			$("#getProBtn").click(function(){
				//prop()获取元素的附加值---input中checked
				var  ischecked=$("#myCheckBox").prop("checked");
				$("#output").text("复选框的值是："+ischecked)
			});		  
			  
			  
		  </script>
	</body>
</html>